package com.petadoption.serverclient.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.petadoption.serverclient.entity.Orderlist;
import com.petadoption.serverclient.mapper.OrderlistMapper;
import com.petadoption.serverclient.service.IOrderlistService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderlistServiceImpl extends ServiceImpl<OrderlistMapper, Orderlist> implements IOrderlistService {
    @Resource
    private OrderlistMapper orderlistMapper;

    @Override
    public int addOrderList(Orderlist orderlist) {
        return orderlistMapper.insert(orderlist);
    }
}
